//package com.xuelang.pipeline.app.resource;
//
//
//import com.xuelang.pipeline.app.resource.impl.TektonServiceFallbackImpl;
//import com.xuelang.pipeline.app.resource.request.PipelineCrdRequest;
//import com.xuelang.pipeline.app.resource.request.PipelineRunCrdRequest;
//import com.xuelang.pipeline.app.resource.v1beta.pipeline.V1Beta1Pipeline;
//import com.xuelang.pipeline.client.common.result.ApiResult;
//import org.springframework.cloud.openfeign.FeignClient;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//
//import jakarta.validation.Valid;
//import java.util.List;
//
///**
// * @author liuyuan.ly
// * @since 2024/6/25 18:21
// */
//@FeignClient(name = "tekton-service", url = "${feign.rpc.workerService}", fallbackFactory = TektonServiceFallbackImpl.class)
//public interface TektonService {
//
//
//    /**
//     * 获取pipelinerun列表
//     *
//     * @param dto
//     * @return
//     */
//    @PostMapping(value = "/create/crd/pipeline", produces = "application/json;charset=utf-8")
//    ApiResult<Boolean> createPipeline(@RequestBody @Valid PipelineCrdRequest dto);
//
//
//    @PostMapping(value = "/get/crd/pipeline/list", produces = "application/json;charset=utf-8")
//    ApiResult<List<V1Beta1Pipeline>> getPipelineList(@RequestBody @Valid PipelineCrdRequest dto);
//
//
//    /**
//     * 获取pipelinerun列表
//     *
//     * @param dto
//     * @return
//     */
//    @PostMapping(value = "/create/crd/pipelineRun", produces = "application/json;charset=utf-8")
//    ApiResult<Boolean> createPipelineRun(@RequestBody @Valid PipelineRunCrdRequest dto);
//
//
//    /**
//     * 查询pipelinerun资源列表
//     *
//     * @param dto
//     * @return
//     */
////    @PostMapping(value = "/get/crd/pipelineRun/list", produces = "application/json;charset=utf-8")
////    ApiResult<List<V1Beta1PipelineRun>> getPipelineRunList(@RequestBody @Valid PipelineRunCrdRequest dto);
//
//    /**
//     * 查询pipelinerun资源列表
//     *
//     * @param dto
//     * @return
//     */
//    @PostMapping(value = "/get/crd/pipelineRun/list", produces = "application/json;charset=utf-8")
//    ApiResult<String> getPipelineRunList(@RequestBody @Valid PipelineRunCrdRequest dto);
//
//}
//
